GH-49905: [Archery] Fix archery benchmark diff with pandas 3#49912
GH-49905: [Archery] Fix archery benchmark diff with pandas 3#49912pitrou merged 1 commit intoapache:mainfrom
Conversation
|
|
|
Thanks a lot @AntoinePrv . @jorisvandenbossche Could you please take a quick look at this? (also is there a way to make Pandas behavior more predictable here?) |
|
Hmm, that's annoying. I don't directly understand why this is failing, though (but I can reproduce it by setting Trying to import pyarrow after |
|
@jorisvandenbossche I can't reproduce this with Pandas 3: |
|
@raulcd it does not yet happen on import, but on first usage that checks input for being a pyarrow array, such as Essentially, I think this boils down to python imports in cython working a bit differently. In pure python, We could specifically check for that case on the pandas side, although that feels a bit of a hack. We could also move that try/except to python code, so it works more as expected. |
|
@jorisvandenbossche what about the proposed fix of this PR? It does solve the issue. |
|
Ah, yes, I am certainly fine with that workaround to have archery working (it just should not be necessary ..) |
|
After merging your PR, Conbench analyzed the 0 benchmarking runs that have been run so far on merge-commit 61c96ca. None of the specified runs were found on the Conbench server. The full Conbench report has more details. |
Rationale for this change
Make archery benchmark diff work with pandas >= 3.0
What changes are included in this PR?
Another way of patching the module
Are these changes tested?
Yes, locally running
archery benchmark diffwith both pandas 2 and 3Are there any user-facing changes?
No